package com.user.api;

import com.user.dto.UserDetailDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-hi")
public interface UserService {

  /**
   * @param username
   * @return
   */
  @GetMapping("/loadByUserName/{username}")
  UserDetailDto loadByUserName(@PathVariable("username") String username);
}
